package de.hawhamburg.androidwecker;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		ButtonListener();

	}

	// Wohnzimmer Button
	private void ButtonListener() {
		Button button = (Button) findViewById(R.id.button_livingroom);
		button.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Intent in = new Intent(MainActivity.this,LivingRoomListActivity.class);
				startActivity(in);
			}
		});
		
	}

	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}
}
